module.exports = app => {
    const { router, controller } = app;
    router.get('/admin/index',controller.admin.index)
    router.post('/admin/addArticle',controller.admin.addArticle)
    router.post('/admin/checkLogin',controller.admin.checkLogin)
    router.post('/admin/updateArticle',controller.admin.updateArticle)
    router.post('/admin/delMsg/:email',controller.admin.delMsg)
    router.post('/admin/delArticle/:article_id',controller.admin.delArticle)
}   
